public class Player{

	private String name;
	private int score;
	
	public Player(){
		name = "Unknown";
	}
	
	public Player(String name){
		this.name = name;
	}
	
	public int getScore() {
		return score;
	}

	public void addPoint(int point){
		// Vérification pour ajout de points négatifs
		if((score + point) > 0)
			score += point;
	}
	
	public String toString(){
		StringBuilder str = new StringBuilder("");
		str.append("Name : "+name + "\n");
		str.append("Score : " +score + "\n");
		return str.toString();
	}
	
	public void print(){
		System.out.println(this);
	}
	
}
